package com.wu.company.entity;

import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Entity
@Table(name = "PRPDUSERSUB")
public class PrpDuserSub implements Serializable {

	private String userCode;
	/** 属性PrpDuser--员工代码表 */
	private PrpDuser prpDuser;
	private String identifyNo;
	private String sex;
	private String nationality;
	private Date birthday;
	private Date enrollDate;
	private String postion;
	private String jobTitle;
	private Date aquireDate;
	private String politicalNature;
	private Date joinpartyDate;
	private Date beginworkDate;
	private Date gocountryDate;
	private Date joinarmyDate;
	private String primaryGraduateSchool;
	private String primaryMajor;
	private String primaryEducationExperience;
	private String primaryDegree;
	private String secondGraduateSchool;
	private String secondMajor;
	private String secondEducationExperience;
	private String secondDegree;
	private String thirdGraduateSchool;
	private String thirdMajor;
	private String thirdEducationExperience;
	private String thirdDegree;
	private String originUnit;
	private String originPosition;
	private String homePhone;
	private String homeAddress;
	private String flag;
	
	@GenericGenerator(name = "generator", strategy = "foreign", parameters = @Parameter(name = "property", value = "prpDuser"))
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "USERCODE")
	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}
	/**
	 * 属性PrpDuser--员工代码表的getter方法
	 */
	@OneToOne(fetch = FetchType.LAZY)
	@PrimaryKeyJoinColumn
	public PrpDuser getPrpDuser() {
		return this.prpDuser;
	}

	/**
	 * 属性PrpDuser--员工代码表的setter方法
	 */
	public void setPrpDuser(PrpDuser prpDuser) {
		this.prpDuser = prpDuser;
	}

	@Column(name = "IDENTIFYNO")
	public String getIdentifyNo() {
		return identifyNo;
	}

	public void setIdentifyNo(String identifyNo) {
		this.identifyNo = identifyNo;
	}

	@Column(name = "SEX")
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name = "NATIONALITY")
	public String getNationality() {
		return nationality;
	}

	public void setNationality(String nationality) {
		this.nationality = nationality;
	}

	@Column(name = "BIRTHDAY")
	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	@Column(name = "ENROLLDATE")
	public Date getEnrollDate() {
		return enrollDate;
	}

	public void setEnrollDate(Date enrollDate) {
		this.enrollDate = enrollDate;
	}

	@Column(name = "POSITION")
	public String getPostion() {
		return postion;
	}

	public void setPostion(String postion) {
		this.postion = postion;
	}

	@Column(name = "JOBTITLE")
	public String getJobTitle() {
		return jobTitle;
	}

	public void setJobTitle(String jobTitle) {
		this.jobTitle = jobTitle;
	}

	@Column(name = "AQUIREDATE")
	public Date getAquireDate() {
		return aquireDate;
	}

	public void setAquireDate(Date aquireDate) {
		this.aquireDate = aquireDate;
	}

	@Column(name = "POLITICALNATURE")
	public String getPoliticalNature() {
		return politicalNature;
	}

	public void setPoliticalNature(String politicalNature) {
		this.politicalNature = politicalNature;
	}

	@Column(name = "JOINPARTYDATE")
	public Date getJoinpartyDate() {
		return joinpartyDate;
	}

	public void setJoinpartyDate(Date joinpartyDate) {
		this.joinpartyDate = joinpartyDate;
	}

	@Column(name = "BEGINWORKDATE")
	public Date getBeginworkDate() {
		return beginworkDate;
	}

	public void setBeginworkDate(Date beginworkDate) {
		this.beginworkDate = beginworkDate;
	}

	@Column(name = "GOCOUNTRYDATE")
	public Date getGocountryDate() {
		return gocountryDate;
	}

	public void setGocountryDate(Date gocountryDate) {
		this.gocountryDate = gocountryDate;
	}

	@Column(name = "JOINARMYDATE")
	public Date getJoinarmyDate() {
		return joinarmyDate;
	}

	public void setJoinarmyDate(Date joinarmyDate) {
		this.joinarmyDate = joinarmyDate;
	}

	@Column(name = "PRIMARYGRADUATESCHOOL")
	public String getPrimaryGraduateSchool() {
		return primaryGraduateSchool;
	}

	public void setPrimaryGraduateSchool(String primaryGraduateSchool) {
		this.primaryGraduateSchool = primaryGraduateSchool;
	}

	@Column(name = "PRIMARYMAJOR")
	public String getPrimaryMajor() {
		return primaryMajor;
	}

	public void setPrimaryMajor(String primaryMajor) {
		this.primaryMajor = primaryMajor;
	}

	@Column(name = "PRIMARYEDUCATIONEXPERIENCE")
	public String getPrimaryEducationExperience() {
		return primaryEducationExperience;
	}

	public void setPrimaryEducationExperience(String primaryEducationExperience) {
		this.primaryEducationExperience = primaryEducationExperience;
	}

	@Column(name = "PRIMARYDEGREE")
	public String getPrimaryDegree() {
		return primaryDegree;
	}

	public void setPrimaryDegree(String primaryDegree) {
		this.primaryDegree = primaryDegree;
	}

	@Column(name = "SECONDGRADUATESCHOOL")
	public String getSecondGraduateSchool() {
		return secondGraduateSchool;
	}

	public void setSecondGraduateSchool(String secondGraduateSchool) {
		this.secondGraduateSchool = secondGraduateSchool;
	}

	@Column(name = "SECONDMAJOR")
	public String getSecondMajor() {
		return secondMajor;
	}

	public void setSecondMajor(String secondMajor) {
		this.secondMajor = secondMajor;
	}

	@Column(name = "SECONDEDUCATIONEXPERIENCE")
	public String getSecondEducationExperience() {
		return secondEducationExperience;
	}

	public void setSecondEducationExperience(String secondEducationExperience) {
		this.secondEducationExperience = secondEducationExperience;
	}

	@Column(name = "SECONDDEGREE")
	public String getSecondDegree() {
		return secondDegree;
	}

	public void setSecondDegree(String secondDegree) {
		this.secondDegree = secondDegree;
	}

	@Column(name = "THIRDGRADUATESCHOOL")
	public String getThirdGraduateSchool() {
		return thirdGraduateSchool;
	}

	public void setThirdGraduateSchool(String thirdGraduateSchool) {
		this.thirdGraduateSchool = thirdGraduateSchool;
	}

	@Column(name = "THIRDMAJOR")
	public String getThirdMajor() {
		return thirdMajor;
	}

	public void setThirdMajor(String thirdMajor) {
		this.thirdMajor = thirdMajor;
	}

	@Column(name = "THIRDEDUCATIONEXPERIENCE")
	public String getThirdEducationExperience() {
		return thirdEducationExperience;
	}

	public void setThirdEducationExperience(String thirdEducationExperience) {
		this.thirdEducationExperience = thirdEducationExperience;
	}

	@Column(name = "THIRDDEGREE")
	public String getThirdDegree() {
		return thirdDegree;
	}

	public void setThirdDegree(String thirdDegree) {
		this.thirdDegree = thirdDegree;
	}

	@Column(name = "ORIGINUNIT")
	public String getOriginUnit() {
		return originUnit;
	}

	public void setOriginUnit(String originUnit) {
		this.originUnit = originUnit;
	}

	@Column(name = "ORIGINPOSITION")
	public String getOriginPosition() {
		return originPosition;
	}

	public void setOriginPosition(String originPosition) {
		this.originPosition = originPosition;
	}

	@Column(name = "HOMEPHONE")
	public String getHomePhone() {
		return homePhone;
	}

	public void setHomePhone(String homePhone) {
		this.homePhone = homePhone;
	}

	@Column(name = "HOMEADDRESS")
	public String getHomeAddress() {
		return homeAddress;
	}

	public void setHomeAddress(String homeAddress) {
		this.homeAddress = homeAddress;
	}

	@Column(name = "FLAG")
	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public static void main(String args[]){
		String s = "HOMEADDRESS";
		System.out.println(s.toLowerCase());
	}
}
